<?php
include_once("templates.php");
include_once("inc/func/categoria.php");
include_once("inc/mysql/conectar.php");

if(!isset($_REQUEST['c']) || !($titulo = nombreCategoria($_REQUEST['c'])) || !isset($_SESSION['datosLogin'])) Header("Location: index.php");
template(1,'Nuevo tema');
$_SESSION['datosNewtopic']['idCategoria'] = $_REQUEST['c'];
include("inc/pages/newtopicForm.php");
template(2,'');
?>
